/*
 * Copyright (c) Hunan Goke,Chengdu Goke,Shandong Goke. 2021. All rights reserved.
 */

#ifndef __ADC_H__
#define __ADC_H__

#define LSADC_IOCTL_BASE 'A'

typedef enum IOC_NR_LSADC_E {
	IOC_NR_LSADC_MODEL_SEL = 0,
	IOC_NR_LSADC_CHN_ENABLE,
	IOC_NR_LSADC_CHN_DISABLE,
	IOC_NR_LSADC_START,
	IOC_NR_LSADC_STOP,
	IOC_NR_LSADC_GET_CHNVAL,
	IOC_NR_LSADC_BUTT
} IOC_NR_LSADC_E;

#define LSADC_IOC_MODEL_SEL _IOWR(LSADC_IOCTL_BASE, IOC_NR_LSADC_MODEL_SEL, int)
#define LSADC_IOC_CHN_ENABLE \
	_IOW(LSADC_IOCTL_BASE, IOC_NR_LSADC_CHN_ENABLE, int)
#define LSADC_IOC_CHN_DISABLE \
	_IOW(LSADC_IOCTL_BASE, IOC_NR_LSADC_CHN_DISABLE, int)
#define LSADC_IOC_START _IO(LSADC_IOCTL_BASE, IOC_NR_LSADC_START)
#define LSADC_IOC_STOP _IO(LSADC_IOCTL_BASE, IOC_NR_LSADC_STOP)
#define LSADC_IOC_GET_CHNVAL \
	_IOWR(LSADC_IOCTL_BASE, IOC_NR_LSADC_GET_CHNVAL, int)

#endif
